package com.example.panpan.productManage.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "tc_stock_record")
public class TcStockRecord {
    @Id
    @Column(name = "record_id")
    private String recordId;

    @Column(name = "product_id")
    private String productId;

    @Column(name = "stock_change")
    private Integer stockChange;

    /**
     * 1售出；2生产增加；3订单取消退回
     */
    @Column(name = "record_type")
    private String recordType;

    private String state;

    @Column(name = "operate_id")
    private String operateId;

    @Column(name = "operate_date")
    private Date operateDate;

    /**
     * @return record_id
     */
    public String getRecordId() {
        return recordId;
    }

    /**
     * @param recordId
     */
    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    /**
     * @return product_id
     */
    public String getProductId() {
        return productId;
    }

    /**
     * @param productId
     */
    public void setProductId(String productId) {
        this.productId = productId;
    }

    /**
     * @return stock_change
     */
    public Integer getStockChange() {
        return stockChange;
    }

    /**
     * @param stockChange
     */
    public void setStockChange(Integer stockChange) {
        this.stockChange = stockChange;
    }

    /**
     * 获取1售出；2生产增加；3订单取消退回
     *
     * @return record_type - 1售出；2生产增加；3订单取消退回
     */
    public String getRecordType() {
        return recordType;
    }

    /**
     * 设置1售出；2生产增加；3订单取消退回
     *
     * @param recordType 1售出；2生产增加；3订单取消退回
     */
    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    /**
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * @return operate_id
     */
    public String getOperateId() {
        return operateId;
    }

    /**
     * @param operateId
     */
    public void setOperateId(String operateId) {
        this.operateId = operateId;
    }

    /**
     * @return operate_date
     */
    public Date getOperateDate() {
        return operateDate;
    }

    /**
     * @param operateDate
     */
    public void setOperateDate(Date operateDate) {
        this.operateDate = operateDate;
    }
}